home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / null.z / null
Encoding:
Text File  |  2002-10-03  |  3.0 KB  |  81 lines

  1. NULL(3I)                                              Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      NNUULLLL - Returns a disassociated pointer
  6.  
  7. SSYYNNOOPPSSIISS
  8.      NNUULLLL (([[MMOOLLDD==]_m_o_l_d]))
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS, UNICOS/mk, IRIX systems
  12.  
  13.      CF90, MIPSpro 7 Fortran 90
  14.  
  15. SSTTAANNDDAARRDDSS
  16.      Fortran
  17.  
  18. DDEESSCCRRIIPPTTIIOONN
  19.      The NNUULLLL intrinsic function returns a disassociated pointer.  It
  20.      accepts the following argument:
  21.  
  22.      _m_o_l_d      A pointer of any type.  This is an optional argument.  Its
  23.                pointer association status can be undefined, disassociated,
  24.                or associated.  If its status is associated, the target need
  25.                not be defined with a value.
  26.  
  27.                _m_o_l_d must be specified when a reference to NNUULLLL appears as
  28.                an actual argument in a reference to a generic procedure if
  29.                the type, type parameters, or rank is required to resolve
  30.                the generic reference.
  31.  
  32.      This is a transformational function.
  33.  
  34. RREETTUURRNN VVAALLUUEESS
  35.      NNUULLLL returns a disassociated pointer.  The pointer has no shape, but
  36.      it does have rank.
  37.  
  38.      If _m_o_l_d is specified, the return value has the same characteristics as
  39.      _m_o_l_d.
  40.  
  41.      If _m_o_l_d is not specified, the data type, type parameters, and rank of
  42.      the result are determined by the pointer that becomes associated with
  43.      the result, as follows:
  44.  
  45.      AAppppeeaarraannccee ooff NNUULLLL:                               RReessuulltt ttyyppee,, ttyyppee
  46.                                                        ppaarraammeetteerrss,, rraannkk::
  47.  
  48.      Right side of a pointer assignment                Pointer on the left
  49.                                                        side
  50.  
  51.      Initialization for an object in a declaration     The object
  52.  
  53.      Default initialization for a component            The component
  54.  
  55.      In a structure constructor                        The corresponding
  56.                                                        component
  57.  
  58.      As an actual argument                             The corresponding
  59.                                                        dummy argument
  60.  
  61.      In a DATA statement                               The corresponding
  62.                                                        pointer object
  63.  
  64. EEXXAAMMPPLLEESS
  65.           INTERFACE GEN
  66.              SUBROUTINE S1 (J, PI)
  67.                 INTEGER J
  68.                 INTEGER, POINTER :: PI
  69.              END SUBROUTINE S1
  70.              SUBROUTINE S2 (K, PR)
  71.                 INTEGER K
  72.                 REAL, POINTER :: PR
  73.              END SUBROUTINE S2
  74.           END INTERFACE
  75.           REAL, POINTER :: REAL_PTR
  76.           CALL GEN (7, NULL (REAL_PTR) )    ! INVOKE S2
  77.  
  78. SSEEEE AALLSSOO
  79.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  80.      man page.
  81.